package vtt.android.dapanhc.activities.fragments;

import vtt.android.library.VttBaseApplication;
import vtt.android.library.utils.VttLog;
import android.os.Bundle;
import android.support.v4.app.Fragment;

import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.AdView;

public class BaseFragment extends Fragment {
	
	protected VttLog log;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		log = new VttLog(getClass().getSimpleName(), VttBaseApplication.isDebuggable);
	}

	protected void loadAdmob(AdView adView) {
		AdRequest adRequest = new AdRequest.Builder()
				.addTestDevice(AdRequest.DEVICE_ID_EMULATOR)
				.addTestDevice("AD3EA773211B100433F351BBFFAE240C")
				.build();
		adView.loadAd(adRequest);
	}
}
